var environment = 'test'; // test:开发环境 wuhanTest：公安网测试环境; HanKouHuoCheZhanTest 汉口火车站开发环境

var navConfig,sendSomeMSMUrl; // nav
// var s_test = true
var s_test = false;
var typeUrl = "pack"; //连接生产环境 打包环境
//var typeUrl = "localhost"; //连接后台工程师环境
var jurisdictionConfig = true; //时候开启权限控制

if(environment === 'test'){ // 开发环境
  navConfig = "WuHan";//
  sendSomeMSMUrl = '';
  var baseURL = 'http://172.16.3.30:10014/'; //内网开发环境
  var webAdminURL = 'http://172.16.3.30:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  //var baseURL = 'http://172.16.0.195:10060/'; //罗冲
  var mapSomeURL = 'http://172.16.3.127:8080/';
  // var mapSomeURL = 'http://localhost:8080/';
  var mapServer = "http://172.16.3.137:6080/ArcGIS/rest/services/WuhanService/MapServer";
  var mapFeatureServerBase = "http://172.16.3.137:6080/arcgis/rest/services/HCZZFeature1/";
  var g_centerPoint = [114.21868761726246, 30.584733852070247];

}
else if(environment === 'jingmenTest') {
  navConfig = "JingMen";//
  sendSomeMSMUrl = '';
  var baseURL = 'http://172.16.3.40:10014/'; //荆门内网开发环境
  var webAdminURL = 'http://172.16.3.40:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://172.16.3.127:8080/';
  // var mapSomeURL = 'http://localhost:8080/';
  var mapServer = "http://172.16.3.137:6080/ArcGIS/rest/services/JMMap/JMMapService/MapServer";
  var mapFeatureServerBase = "http://172.16.3.137:6080/arcgis/rest/services/HCZZFeature1/";
  var g_centerPoint = [112.19363067202347, 31.037642839381];
}
else if(environment === 'jingmen') {
  navConfig = "JingMen";//
  sendSomeMSMUrl = '';
  var baseURL = 'http://10.75.169.167:10014/'; //荆门公安环境
  var webAdminURL = 'http://10.75.169.167:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://10.73.200.56:8080/';
  // var mapSomeURL = 'http://localhost:8080/';
  // 修改地址 2018-12-25
  var mapServer = "http://10.75.169.169:9090/ArcGIS/rest/services/JMVectorService/MapServer";
  //var mapServer = "http://10.75.128.103:7001/PGIS_S_TileMapServer/Maps/JMSLNEW/EzMap";
  var mapFeatureServerBase = "http://59.39.4.11:6080/arcgis/rest/services/HCZZFeature/";
  var g_centerPoint = [112.19376978155286, 31.03748750769548];
}
else if(environment === 'wuhanTest'){ //武汉公安网测试环境
  navConfig = "WuHan";//
  sendSomeMSMUrl = '';
  var baseURL = 'http://10.73.200.165:10014/';
  var webAdminURL = 'http://10.73.200.165:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://10.73.200.56:8080/';
  // var mapServer = "http://gis095152.whs.hb/whgaj_gis_gissite1/rest/services/whmap_2017/MapServer";
  // 武汉地图新地址 修改日期 2018-11-13
  var mapServer = "http://10.73.95.153/whgaj_gis_gissite3/services/whmap_201802/MapServer";
  var mapFeatureServerBase = "http://59.39.4.11:6080/arcgis/rest/services/HCZZFeature/";
  var g_centerPoint = [114.21868761726246, 30.584733852070247];
}
else if(environment === 'ZhuanKou'){ //沌口公安网测试环境
  navConfig = "WuHan";//
  sendSomeMSMUrl = '';
  var baseURL = 'http://59.48.5.106:10014/';
  var webAdminURL = 'http://59.48.5.106:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://10.73.200.56:8080/';
  // var mapServer = "http://gis095152.whs.hb/whgaj_gis_gissite1/rest/services/whmap_2017/MapServer";
  // 武汉地图新地址 修改日期 2018-11-13
  var mapServer = "http://10.73.95.153/whgaj_gis_gissite3/rest/services/whmap_201802/MapServer";
  var mapFeatureServerBase = "http://59.39.4.11:6080/arcgis/rest/services/HCZZFeature/";
  var g_centerPoint = [114.21868761726246, 30.584733852070247];
}
else if(environment === 'gaomi'){ //gaomi公安环境
  navConfig = "GaoMi";//
  sendSomeMSMUrl = '';
  var baseURL = 'http://10.52.206.216:10000/';
  var webAdminURL = 'http://10.52.206.216:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://10.73.200.56:8080/';
  var mapServer = "http://10.52.206.60:6080/arcgis/rest/services/gaomicyyNew/MapServer";
  //var mapFeatureServerBase = "http://59.39.4.11:6080/arcgis/rest/services/HCZZFeature/";
  var mapFeatureServerBase = "http://59.39.4.11:6080/arcgis/rest/services/GM/GMHCZZFeature/";
  var g_centerPoint = [119.75169196761182, 36.386542826250285];
}
else if(environment === 'HanKouHuoCheZhanTest'){ //汉口火车站
  navConfig = "HanKouHuoCheZhan";//
  sendSomeMSMUrl = '';
  var baseURL = 'http://172.16.3.30:10014/'; //内网开发环境
  var webAdminURL = 'http://172.16.3.30:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://172.16.3.127:8080/';
  var mapServer = "http://172.16.3.137:6080/ArcGIS/rest/services/WuhanService/MapServer";
  var mapFeatureServerBase = "http://172.16.3.137:6080/arcgis/rest/services/HCZZFeature1/";
  var g_centerPoint = [114.21868761726246, 30.584733852070247];
}
else if (environment === 'WeiFangTest') { // 潍坊测试环境
  navConfig = "GaoMi";//
  sendSomeMSMUrl = 'WeiFang';
  var baseURL = 'http://172.16.3.10:10014/';
  var webAdminURL = 'http://172.16.3.10:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://10.73.200.56:8080/';
  var mapServer = "http://10.52.206.60:6080/arcgis/rest/services/gaomicyyNew/MapServer";
  var mapFeatureServerBase = "http://59.39.4.11:6080/arcgis/rest/services/HCZZFeature/";
  var g_centerPoint = [119.75169196761182, 36.386542826250285];
}
else if (environment === 'WeiFang') { // 潍坊测试环境
  navConfig = "WeiFang";//
  sendSomeMSMUrl = 'WeiFang';
  var baseURL = 'http://10.52.217.78:10014/';
  var webAdminURL = 'http://10.52.217.78:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://10.73.200.56:8080/';
  var mapServer = "http://10.52.206.60:6080/arcgis/rest/services/gaomicyyNew/MapServer";
  var mapFeatureServerBase = "http://59.39.4.11:6080/arcgis/rest/services/HCZZFeature/";
  var g_centerPoint = [119.75169196761182, 36.386542826250285];
}
else if(environment === 'HanKouHuoCheZhan'){ // 汉口火车站正式版
  navConfig = "WuHan";
  sendSomeMSMUrl = '';
  var baseURL = 'http://10.73.200.184:10014/'; //内网开发环境
  var webAdminURL = 'http://10.73.200.184:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://10.73.200.56:8080/';
  // var mapSomeURL = 'http://localhost:8080/';
  var mapServer = 'http://10.73.95.153/whgaj_gis_gissite3/services/whmap_201802/MapServer';
  var mapFeatureServerBase = 'http://59.39.4.11:6080/arcgis/rest/services/HCZZFeature1/';
  var g_centerPoint = [114.21868761726246, 30.584733852070247]
}else if(environment === 'ZhongTai'){ // 中台
  navConfig = "ZhongTai";
  sendSomeMSMUrl = '';
  var baseURL = 'http://10.73.200.184:10014/'; //内网开发环境
  var webAdminURL = 'http://10.73.200.184:10014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://10.73.200.56:8080/';
  // var mapSomeURL = 'http://localhost:8080/';
  var mapServer = 'http://10.73.95.153/whgaj_gis_gissite3/services/whmap_201802/MapServer';
  var mapFeatureServerBase = 'http://59.39.4.11:6080/arcgis/rest/services/HCZZFeature1/';
  var g_centerPoint = [114.21868761726246, 30.584733852070247]
} else if(environment === 'XiaoGanTest') {  //孝感正式环境
  navConfig = "XiaoGan";
  sendSomeMSMUrl = '';
  var baseURL = 'http://59.39.6.56:20014/';
  var webAdminURL = 'http://59.39.6.56:20014/api/jp-HCZZ-AdminWeb-app-ms'; //调度中心
  var mapSomeURL = 'http://10.73.200.56:8080/';
  var mapServer = "http://10.73.200.163:9090/ArcGIS/rest/services/JMVectorService/MapServer";
  var mapFeatureServerBase = "http://59.156.11.47:6080/arcgis/rest/services/HCZZFeature/";
  var g_centerPoint = [113.952041024453, 30.9196573878907];
}

var dojoURL = mapSomeURL + 'api47/arcgis_js_api/library/4.7/dojo/dojo.js';
var cssURL = mapSomeURL + 'api47/arcgis_js_api/library/4.7/esri/css/main.css';
var mapFeatureServer = mapFeatureServerBase + 'FeatureServer/';
